<template>
  <Modal title="轮播图图片查看" :show="show" @ok="show = false" @cancel="show = false" width="800px" :cancel="false">
    <img :src="src" alt="" width="700">
  </Modal>
</template>

<script lang="ts">
export default {
  name: "CarouselImg"
}
</script>

<script setup lang="ts">
import Modal from '@/components/Modal.vue'
import {onMounted, ref} from "vue"

const show =  ref<boolean>(false)

const src = ref<string>("")

function init (url) {
  src.value = url
  show.value = true
}

defineExpose({
  init
})

onMounted( () => {
} )
</script>

<style scoped lang="scss">

</style>
